<template>
  <div class="home">
      {{detail.title}}

      {{detail.con}}
  </div>
</template>

<script>
export default {
    data(){
        return {
            detail:{}
        }
    },
    created(){
        console.log(this.$route)

        this.$http.get('/api/detail',{params:{id:this.$route.params.id}}).then(res => {
            if(res.data.code === 1){
                this.detail = res.data.data;
            }
        })
    }
}
</script>